package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LPraise
 * @date 2021.04.08 10:16
 * @describe 点赞实体类
 */
@TableName("l_praise")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LPraise对象", description="点赞")
public class LPraise implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "praise_id", type = IdType.AUTO)
    private Integer praiseId;

    @ApiModelProperty(value = "点赞用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "课程id")
    @TableField("course_id")
    private Integer courseId;

    public Integer getPraiseId() {
        return praiseId;
    }

    public void setPraiseId(Integer praiseId) {
        this.praiseId = praiseId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
}
